package com.quizzer.system.dto.user.appUser;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 小程序用户添加 DTO
 * 用于新增小程序用户信息
 *
 * @author rong
 * @date 2025/10/7 19:50
 */
@Data
@ApiModel(description = "小程序用户添加 DTO")
public class AppUserAddDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "微信/小程序唯一标识", required = true, example = "oT9xxxx123")
    @NotBlank(message = "openid不能为空")
    private String openid;

    @ApiModelProperty(value = "用户名/昵称", example = "张三")
    private String username;

    @ApiModelProperty(value = "头像地址", example = "https://example.com/avatar.jpg")
    private String avatarUrl;

    @ApiModelProperty(value = "性别：0未知 1男 2女", example = "1")
    private Integer gender;

    @ApiModelProperty(value = "状态：1正常 0禁用", example = "1")
    private Integer status;
}
